package com.nwpusp.display.views.components;

import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.view.View;

import com.example.petssports.R;
import com.nwpusp.display.GlobalVar;

public class GameScore  extends View{
	public Bitmap gameScoreBitmap;
	public float x;
	public float y;
	public float scale;
	public float width;
	public float height;
	public String name;
	public String sroce;
	
	public GameScore(Context view,float scale){
		super(view);
		this.scale = scale;
		getBitmapSource();
		gameScoreBitmap = GlobalVar.VerticalScale(gameScoreBitmap,scale);
		width = gameScoreBitmap.getWidth();
		height = gameScoreBitmap.getHeight();
		//gameScoreBitmap = GlobalVar.DrawGameScore(width,height,gameScoreBitmap,name,sroce);
	}
	
	public void setLocation(float x ,float y){
		this.x = x;
		this.y = y;
	}
	
	private void getBitmapSource(){
		gameScoreBitmap = BitmapFactory.decodeResource(getResources(), R.drawable.end_effect1);
	}
	
	public Bitmap draw(){
		return gameScoreBitmap;
	}
}